﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AG.Editor.Core;

namespace AG.Editor.UI
{
    public class AGECommonCommand
    {
        public static void SaveProject()
        {
            // 保存
            AGTools.Current.EProjectStore.SaveEProject(AG.Editor.Core.AGEContext.Current.EProject);
            AG.Editor.Core.AGEContext.Current.EProject.Reset();
            AG.Editor.Core.AGTools.Current.SettingsStore.SaveSettings(AG.Editor.Core.AGEContext.Current.Settings);
        }

        public static void PublishProject()
        {
            AGPublishResourceWindow window = new AGPublishResourceWindow();
            window.ShowDialog();
        }
    }
}
